<template>
  <div>
    <ChildComponent :update="getMsg" :message="parentMessage" />
    <!-- <CodeCanvas></CodeCanvas> -->
  </div>
</template>
<script lang="ts" setup>
// 使用组件的前提是引入对应的vue文件
const ChildComponent = defineAsyncComponent(() => import("@/components/child.vue"));
const CodeCanvas = defineAsyncComponent(() => import("@/components/CodeCanvas.vue"));
const parentMessage = ref("Hello world");
const getMsg = (data: any) => {
  console.log(data);
};
console.log("测试", import.meta.env);
</script>
